package _90ZhuangShiQi.impl.sub;

import _90ZhuangShiQi.Shape;
import _90ZhuangShiQi.impl.ShapeDecorator;

/**
 * @RedShapeDecorator: 继承 ShapeDecorator 的 子类 拓展其功能
 * @author: ZBoHang
 * @time: 2021/9/9 13:25
 */
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape shapeDecorator) {
        super(shapeDecorator);
    }

    @Override
    public void draw() {
        shapeDecorator.draw();
        setTedBorder(shapeDecorator);
    }

    private void setTedBorder(Shape shapeDecorator) {
        System.out.println("将边框设置为 红色<--");
    }
}
